#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include "stdfax.h"
#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyPushButton(QPushButton *parent = nullptr);
    MyPushButton(QString default_image, QString triggered_image = "");
    bool setDefaultImage(QString);
    bool setTriggerImage(QString);
    void Bouncing();

    virtual void mousePressEvent(QMouseEvent *e);
    virtual void mouseReleaseEvent(QMouseEvent *e);

signals:

private:
    QString default_Image;
    QString triggered_Image;
    bool useImage(QString);
};

#endif // MYPUSHBUTTON_H
